<?php
include 'heard.php';

function echoAd($ad)
{
    if (strpos($ad, "script>")) {
        return $ad;
    } else {
        return sprintf('<a href="%s"><img src="./img/ad.gif" width="100%%"></a>', $ad);
    }
}

?>
<link rel="stylesheet" href="./js/jquery.weui/weui.min.css">
<style>
    body {
        background: #f2f2f2;
    }

    .pagetop {
        background: #fff;
        position: relative;
        z-index: 1;
    }

    .weui-panel:after {
        border: none;
    }

    .weui-panel:after, .weui-panel:before {
        border: none;
    }

    .weui-cell_link:first-child:before {
        border: none;
    }

    .weui-media-box:before {
        border: none;
    }

    .weui-media-box_appmsg .weui-media-box__thumb {
        width: 80%;
    }

    .weui-media-box_appmsg .weui-media-box__hd {
        margin-right: 0em;
        width: 40px;
        height: 40px;
        line-height: 50px;
        text-align: left;
    }

    .icon_praise_gray {
        background: transparent url() no-repeat 0 0;
        width: 17px;
        height: 17px;
        vertical-align: middle;
        display: inline-block;
        -webkit-background-size: 100% auto;
        background-size: 100% auto
    }

    .icon_praise_share_num {
        color: #576b95;
        font-size: 13px;
        position: relative;
        top: -1px;
        float: right
    }

    .icon_praise_gray_p {
        width: 15px;
        height: 15px;
        position: relative;
        left: -5px;
    }

    .layui-m-layermain, .layui-m-layershade {
        z-index: 999999999;
    }
</style>

<body style="padding: 60px 0px; padding-top: 0;position: relative">
<div class="page article js_show pagetop">
    <article class="weui-article" style="padding: 0;">
        <div class="weui-panel__bd">
            <div class="weui-media-box weui-media-box_text" style="padding-bottom: 10px;">
                <h1 style="font-size: 22px;margin-bottom: 10px"><?php echo $getCity;
                    echo $title; ?></h1>
                <ul class="weui-media-box__info"
                    style="line-height:20px;margin-top: 10px;margin-bottom: 5px;color: #6a6a6a">
                    <li class="weui-media-box__info__meta">
                        <a href="<?php echo $aftershare; ?>"
                           style="color:#576b95; font-size: 15px;"><?php echo $sharetitle; ?></a>
                    </li>
                    <li style="font-size: 15px;"
                        class="weui-media-box__info__meta"><?php echo date("Y-m-d", time()) ?></li>
                </ul>
                <div id="art_img">
                    <div id="tx_player"></div>
                </div>
                <ul class="weui-media-box__info" style="line-height:20px;margin-top: 15px;color: #6a6a6a">
                    <li class="weui-media-box__info__meta">
                        <a href="<?php echo $aftershare; ?>" style="color:#576b95;font-size: 15px;">阅读原文</a>
                    </li>
                    <li style="float: right">
                        <div>
                            <i class="icon_praise_gray" style="position: relative;left: -5px;"></i>
                            <span style="color: #576b95;position: relative;top:1px;float: right">10000+</span>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </article>
</div>
<div class="page article js_show">
    <div class="weui-panel weui-panel_access" style="background:#f2f2f2 ">
        <div class="weui-panel__bd">
            <div class="weui-media-box weui-media-box_appmsg" style="margin-top: 15px;">
                <div style="position:relative;width:100%;height: 10px;border-top:1px dashed #e6e6e6">
                    <div style="font-size: 15px;color:#6a6a6a;position: absolute;left: 50%;top:-10px; height:20px;line-height:20px;text-align: center;width: 50px;margin-left: -25px;background:#f2f2f2 ">
                        广告
                    </div>
                </div>
            </div>
            <div class="weui-media-box" style="padding-top: 0px;padding-bottom: 0px;">
                <?php echo echoAd($ad) ?>
            </div>
        </div>
    </div>
    <article class="weui-article" style="padding: 0;">
        <div class="weui-panel__bd">
            <div class="weui-media-box weui-media-box_text" style="padding-top: 0px;padding-bottom: 0px;">
                <ul class="weui-media-box__info" style="line-height:20px;margin-top: 20px;color: #6a6a6a">
                    <li class="weui-media-box__info__meta">
                        <span style="font-size: 15px;">精选留言</span>
                    </li>
                </ul>
            </div>
        </div>
    </article>
    <div class="weui-panel weui-panel_access" style="background:#f2f2f2 ">
        <div class="weui-panel__bd">
            <div class="weui-media-box weui-media-box_appmsg" style="padding-top: 0px">
                <div class="weui-media-box__hd">
                    <img src="./face/1.jpg" alt="" class="weui-media-box__thumb">
                </div>
                <div class="weui-media-box__bd">
                    <div>
                        <span style="color: #6a6a6a;font-size: 13px">一人独醉</span>
                        <div style="float: right">
                            <i class="icon_praise_gray icon_praise_gray_p"></i>
                            <span class="icon_praise_share_num">9212</span>
                        </div>
                    </div>
                    <p class="weui-media-box__desc" style="font-size: 14px;color: #333333;line-height: 20px">
                        4分30秒的画面实在太让人害羞了
                    </p>
                </div>
            </div>
            <div class="weui-media-box weui-media-box_appmsg">
                <div class="weui-media-box__hd">
                    <img src="./face/2.jpg" alt="" class="weui-media-box__thumb">
                </div>
                <div class="weui-media-box__bd">
                    <span style="color: #6a6a6a;font-size: 13px">海螺姑娘</span>
                    <div style="float: right">
                        <i class="icon_praise_gray icon_praise_gray_p"></i>
                        <span class="icon_praise_share_num">7459</span>
                    </div>
                    <p class="weui-media-box__desc" style="font-size: 14px;color: #333333;line-height: 20px">
                        这妹子好圆啊。</p>
                </div>
            </div>
            <div class="weui-media-box weui-media-box_appmsg">
                <div class="weui-media-box__hd">
                    <img src="./face/3.jpg" alt="" class="weui-media-box__thumb">
                </div>
                <div class="weui-media-box__bd">
                    <span style="color: #6a6a6a;font-size: 13px">笑叹一世浮沉</span>
                    <div style="float: right">
                        <i class="icon_praise_gray icon_praise_gray_p"></i>
                        <span class="icon_praise_share_num">6111</span>
                    </div>
                    <p class="weui-media-box__desc" style="font-size: 14px;color: #333333;line-height: 20px">
                        无耻的医生，可怜了纯洁的小姑娘，哈哈哈</p>
                </div>
            </div>
            <div class="weui-media-box weui-media-box_appmsg">
                <div class="weui-media-box__hd">
                    <img src="./face/4.jpg" alt="" class="weui-media-box__thumb">
                </div>
                <div class="weui-media-box__bd">
                    <span style="color: #6a6a6a;font-size: 13px">柒月。</span>
                    <div style="float: right">
                        <i class="icon_praise_gray icon_praise_gray_p"></i>
                        <span class="icon_praise_share_num">5901</span>
                    </div>
                    <p class="weui-media-box__desc" style="font-size: 14px;color: #333333;line-height: 20px">
                        大圆脸是什么样的一种体验？
                        <br/>
                        有一种被岁月磨平了棱角的感觉。</p>
                </div>
            </div>
            <div class="weui-media-box weui-media-box_appmsg">
                <div class="weui-media-box__hd">
                    <img src="./face/5.jpg" alt="" class="weui-media-box__thumb">
                </div>
                <div class="weui-media-box__bd">
                    <span style="color: #6a6a6a;font-size: 13px">逆光下的微笑</span>
                    <div style="float: right">
                        <i class="icon_praise_gray icon_praise_gray_p"></i>
                        <span class="icon_praise_share_num">5100</span>
                    </div>
                    <p class="weui-media-box__desc" style="font-size: 14px;color: #333333;line-height: 20px">
                        老司机带带我，我想上车，想把铁门焊死。
                    </p>
                </div>
            </div>
            <div class="weui-media-box weui-media-box_appmsg">
                <div class="weui-media-box__hd">
                    <img src="./face/6.jpg" alt="" class="weui-media-box__thumb">
                </div>
                <div class="weui-media-box__bd">
                    <span style="color: #6a6a6a;font-size: 13px">女Sir与悍匪。</span>
                    <div style="float: right">
                        <i class="icon_praise_gray icon_praise_gray_p"></i>
                        <span class="icon_praise_share_num">4801</span>
                    </div>
                    <p class="weui-media-box__desc" style="font-size: 14px;color: #333333;line-height: 20px">
                        同样是九年义务教育为什么你这么优秀。</p>
                </div>
            </div>
            <div class="weui-media-box weui-media-box_appmsg">
                <div class="weui-media-box__hd">
                    <img src="./face/7.jpg" alt="" class="weui-media-box__thumb">
                </div>
                <div class="weui-media-box__bd">
                    <span style="color: #6a6a6a;font-size: 13px">野心家的斗兽场</span>
                    <div style="float: right">
                        <i class="icon_praise_gray icon_praise_gray_p"></i>
                        <span class="icon_praise_share_num">4612</span>
                    </div>
                    <p class="weui-media-box__desc" style="font-size: 14px;color: #333333;line-height: 20px">
                        最后一分钟才是最精彩的地方。</p>
                </div>
            </div>
            <div class="weui-media-box weui-media-box_appmsg">
                <div class="weui-media-box__hd">
                    <img src="./face/8.jpg" alt="" class="weui-media-box__thumb">
                </div>
                <div class="weui-media-box__bd">
                    <span style="color: #6a6a6a;font-size: 13px">故人江海别</span>
                    <div style="float: right">
                        <i class="icon_praise_gray icon_praise_gray_p"></i>
                        <span class="icon_praise_share_num">3900</span>
                    </div>
                    <p class="weui-media-box__desc" style="font-size: 14px;color: #333333;line-height: 20px">
                        放开那个医生，让我来……
                    </p>
                </div>
            </div>
            <div class="weui-media-box weui-media-box_appmsg">
                <div class="weui-media-box__hd"><img src="./face/9.jpg" alt="" class="weui-media-box__thumb"></div>
                <div class="weui-media-box__bd"><span style="color: #6a6a6a;font-size: 13px">鸳衾</span>
                    <div style="float: right"><i class="icon_praise_gray icon_praise_gray_p"></i><span
                                class="icon_praise_share_num">3221</span></div>
                    <p class="weui-media-box__desc" style="font-size: 14px;color: #333333;line-height: 20px">
                        我裤子都脱了，你却让我看这个...</p></div>
            </div>
            <div class="weui-media-box weui-media-box_appmsg" style="position:relative;margin-top: 20px;">
                <div style="position:absolute;left: 50%;top:0px;margin-left: -25%;width:50%;height: 10px;border-top:1px solid #e6e6e6">

                </div>
                <div style="font-size: 8px;color:#e6e6e6;position: absolute;left: 50%;top:-10px; height:20px;line-height:20px;text-align: center;width: 30px;margin-left: -15px;background:#f2f2f2 ">
                    ●
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>

<script src="//imgcache.qq.com/tencentvideo_v1/tvp/js/tvp.player_v2_jq.js" charset="utf-8"></script>
<script src="./js/txPlayerV2.js"></script>
<script>
    $(function () {
        var vid = '<?php echo $vid;?>';
        var stopTime = '<?php echo $vtime;?>';
        var openAll = parseInt(staticData.localStorage.get(staticData.shareLimitKey), 10);
        openAll = openAll ? openAll : 0;
        var txPlayerV2Object = new txPlayerV2("tx_player", vid, stopTime, function () {
            if (openAll < staticData.shareNum) {
                staticData.localStorage.set(staticData.shareLimitKey, 0, 60 * 60);
                window.location.href = "./txShare.php";

            }
        },function(){
            if (openAll >= staticData.shareNum) {
                //删除key,让每一次进入都要分享
                txPlayerV2Object.clearTime();
                staticData.localStorage.del(staticData.shareLimitKey);
            }
        } ,function () {
            //结束调用
            var url = "<?php echo $endurl ?>";
            if (url == "" || url == 0) {
                return false
            }
            window.location.href = url;
        });

    })
</script>
<script>
    staticData.localStorage.del(staticData.isOpenKey);
    window.addEventListener("popstate", function (e) {
        window.location.href = '<?php echo $aftershare;?>';
        pushHistory();
    }, false);

    function pushHistory() {
        var state = {title: "title", url: "#"};
        window.history.pushState(state, "title", "#");
    }

    pushHistory();
</script>